package com.babyqiao.wallpaper.portal.controller;

import com.babyqiao.wallpaper.common.UnifyResult;
import com.babyqiao.wallpaper.portal.entity.WallpaperAlbum;
import com.babyqiao.wallpaper.portal.entity.vo.HomeContentVO;
import com.babyqiao.wallpaper.portal.service.IhomeContentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.redisson.api.RLock;
import org.redisson.api.RSemaphore;
import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author QLZ
 * @date 2021/2/24
 */
@RestController
@Api(tags = "首页内容相关接口")
@RequestMapping("/wp/home")
public class HomePageController {


    @Autowired
    IhomeContentService contentService;


    @GetMapping("content")
    @ApiOperation(value = "首页内容展示",httpMethod = "GET")
    public UnifyResult getContent(){
        HomeContentVO homeContentVO= contentService.getContentService();
        return UnifyResult.success().data("result",homeContentVO);

    }
    





}
